package com.shawn.spring.boot.yaml;

import java.util.List;
import java.util.Map;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author shawn
 * @since 2020/7/18
 */
@Component
@Data
@ConfigurationProperties(prefix = "datasource")
public class DataSource {

  private List<DataSourceConfig> configs;
  private boolean isMysql;
  private Map<String, DataSourceConfig> configMap;

}
